import React, { Component } from 'react'
import Item from '../Item'
import './index.css'

export default class List extends Component {
    render() {
        const {dataList,updatas} = this.props;

        return (
            <ul className="todo-main">
               {
                   dataList.map(item=>{
                       return  <Item key={item.id} {...item} updatas={updatas} />
                   })
               }
              
          </ul>
        )
    }
}
